home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MODEX104.ZIP / MODE-X.TXT < prev    next >
Text File  |  1993-05-14  |  2KB  |  45 lines

  1. The following is a FAQ (Frequently Asked Question) summary of 
  2. information and assembly routines for Mode "X" Graphics.
  3.  
  4. An overview of Mode "X" for the VGA Adaptor:
  5.  
  6. 1) Mode "X" is a 256 color graphics mode that is available on *ANY* VGA
  7. card with the minimum of 256K video RAM.  It is capable of providing
  8. higher resoultions than the only "Official" 256 color mode, mode 13h.
  9. (In quickbasic that is mode 13)
  10.  
  11. 2) Mode "X" comes in 8 different flavors: 320 or 360 pixels
  12. horizontally, and 200, 240, 400, and 480 pixels vertically.
  13.  
  14. 3) Since mode X is not supported by the VGA BIOS, there is no built in
  15. support for it.  A program must provide its own routines for *ALL*
  16. operations in Mode "X", including setting up the video mode.
  17.  
  18. 4) Unlike Mode 13h, which has one display page, Mode "X" allows from 1
  19. to 4 video pages, depending upon the resoultion selected.  The reason
  20. that Mode 13h has but one page is that it activates a VGA hardware
  21. feature known as CHAIN4, which prevents access to all but 64K of VGA's
  22. video RAM.  CHAIN4 is what provides mode 13h's linear addres space.
  23.  
  24. 5) Unlike Mode 13h, where each 256 color (1-byte) pixel has a unique
  25. address in the E000: segement, in Mode X there are Four (4) Pixels
  26. at each address in E000: segment.  The VGA's control registers allow you
  27. to control which of the 4 pixels is currently available at an address.
  28.  
  29. 6) It is possible to use the VGA's control registers to operate on 2 or
  30. more of the Pixels at the same address at the same time.  The CPU can
  31. write one color value, and set up to 4 pixels with that value at the
  32. same time.
  33.  
  34. 7) Video RAM that is not being used for the current screen display can
  35. be used to store images and patterns.  These images and patterns can be
  36. copied to other parts of the Video RAM 4 bytes (32 bits) at a time,
  37. which is much faster than the 8 bits (1 byte) at time that is possible
  38. over the ISA BUS.  (16 Bit BUS operations can produce erroneous results)
  39.  
  40. If anything is unclear, inadequate, or you just plain want to know more 
  41. or have other specific questions, please send me a message.
  42.  
  43.  
  44. -Matt Pritchard
  45.